package cn.cdeden.knowledge.domain;

import cn.cdeden.knowledge.domain.dto.SysFormDocDto;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.github.linpeilie.annotations.AutoMapper;
import io.github.linpeilie.annotations.AutoMappers;
import lombok.Data;

/**
 * 自定义表单文档数据
 */
@Data
@TableName(value = "sys_form_doc")
@AutoMappers({@AutoMapper(target = SysFormDocDto.class)})
public class SysFormDoc {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField(value = "`data`")
    private String data;

    @TableField(value = "form_id")
    private String formId;

    @TableField(value = "tree_node_id")
    private String treeNodeId;

    @TableField(value = "`type`")
    private String type;

    @TableField(value = "`name`")
    private String name;

    @TableField(value = "team_id")
    private String teamId;

    @TableField(value = "`options`")
    private String options;
}
